<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<title>SharingDog</title>
</h:head>
<h:body>
	<div id="cabecalho">
		<h:graphicImage library="img" name="logo_sd.png" />
		<p:themeSwitcher value="#{temaBean.tema}"
			style="position: absolute; right: 20px;">
			<f:selectItems value="#{temaBean.temas}" />
		</p:themeSwitcher>
		<h:form>
			<p:menubar>
				<p:submenu label="Cadastros">
					<p:menuitem value="Usuario" action="cadastroUsuario" />
					<p:menuitem value="Porte" action="cadastroPorte" />
					<p:menuitem value="Raça" action="cadastroRaca" />
				</p:submenu>
				<p:submenu label="Registros Animais">
					<p:menuitem value="Cachorros" action="relatorioCachorros" />
					<p:menuitem value="Racas" action="relatorioRacas" />
					<p:menuitem value="Porte" action="relatorioPortes" />
				</p:submenu>
				<p:submenu label="Registros Pessoas">
					<p:menuitem value="Todos" action="relatorioUsuarios" />
					<p:menuitem value="Sem Interesse"
						action="relatorioUsuariosSemInteresse" />
					<p:menuitem value="Sem Recomendações"
						action="relatorioUsuariosSemRecomendacao" />
				</p:submenu>
				<p:submenu label="Analises">
					<p:menuitem value="Recomendações" action="relatorioRecomendacoes" />
					<p:menuitem value="Interesses" action="relatorioInteresses" />
				</p:submenu>
				<p:submenu label="Sair">
					<p:menuitem value="Finalizar sessão" action="#{loginBean.logOut}" />
				</p:submenu>
				<b> <p:menuitem
						style="position: absolute; right: 20px;color:red; font-weight:bold"
						value="olá, #{loginBean.usuarioLogado.login}" />
				</b>

			</p:menubar>
		</h:form>

		<hr />
		<h1>
			<ui:insert name="titulo"></ui:insert>
		</h1>
	</div>

	<div id="conteudo">
		<ui:insert name="conteudo">
		</ui:insert>
	</div>
	<br />
	<hr />
	<div id="rodape" style="align: justify">
		<p:fieldset style="align: justify">Desenvolvido por Danyllo Wagner</p:fieldset>
	</div>

</h:body>

</html>